<template>
  <div class="app-container">
    <el-col :span="8">
      <el-form ref="form" :model="IPSetting" label-width="120px">
        <el-form-item label="监听IP">
          <el-input v-model="IPSetting.listenIP" />
        </el-form-item>
        <el-form-item label="监听端口">
          <el-input v-model="IPSetting.listenPort" />
        </el-form-item>
        <el-form-item label="目标IP">
          <el-input v-model="IPSetting.targetIP" />
        </el-form-item>
        <el-form-item label="目标端口">
          <el-input v-model="IPSetting.targetPort" />
        </el-form-item>
      </el-form>
      <div style="text-align: center">
        <el-button type="primary">修改</el-button>
      </div>
    </el-col>
  </div>
</template>

<script>
export default {
  data() {
    return {
      IPSetting: {
        listenIP: '127.0.0.1',
        listenPort: '8888',
        targetIP: '127.0.0.1',
        targetPort: '7777'
      }
    }
  },
  methods: {
    onSubmit() {
      this.$message('submit!')
    },
    onCancel() {
      this.$message({
        message: 'cancel!',
        type: 'warning'
      })
    }
  }
}
</script>

<style scoped>
.line{
  text-align: center;
}
</style>

